package com.maxlen.goods.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.maxlen.common.utils.PageUtils;
import com.maxlen.goods.entity.CategoryBrandRelationEntity;
import com.maxlen.goods.entity.dto.CategoryBrandRelationWithBrandDTO;
import com.maxlen.goods.entity.dto.SkuItemDTO;
import com.maxlen.goods.entity.vo.CategoryBrandRelationVO;
import com.maxlen.goods.entity.dto.CategoryBrandRelationDTO;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author MaxLen
 * @email MaxLen@gmail.com
 * @date 2022-10-27 09:43:29
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryBrandRelationEntity> findByBrandId(Long brandId);

    void saveDetail(CategoryBrandRelationVO categoryBrandRelationVO);

    void updateBrand(Long brandId, String name);

    void updateCategory(Long catId, String name);

    void removeBatchByBrandId(List<Long> brandIds);

    List<CategoryBrandRelationEntity> findByCategoryId(Long categoryId);

    List<SkuItemDTO.BrandDetailDTO> getBrandByCatalogId(Long catalogId);

}

